#ifndef __NETWORK_H__
#define __NETWORK_H__

typedef struct networkOpr
{
	char *name;
	int fd;
	int (*networkInit)(void);
	int (*networkExit)(void);
	int (*networkConnect)(void);
	int (*networkSend)(char *buff, int lenth);
	int (*networkRecv)(char *buff, int lenth);
	struct networkOpr *next;
}T_networkOpr,*PT_networkOpr;

int registerNetWork(PT_networkOpr g_pNetworkOpr);
int initNetWork(void);
void showNetWork(void);
PT_networkOpr selectNetWork(char *name);

//////weatherserver
int WeatherServerInit(void);
int WeatherServerExit(void);

int clientNetWorkInit(void);
int serverNetWorkInit(void);


#endif

